package com.civil.response;

public enum MsgType {

	IsOk(0,"OK"),
	Error(1,"error");
	
private int value;
	
	private String remark;
	
	private MsgType(int value,String remark){
		this.value = value;
		this.remark = remark;
	}

	public int getValue() {
		return value;
	}

	public String getRemark() {
		return remark;
	}
	
	public static MsgType getByValue(int value) {
		for (MsgType o : MsgType.values()) {
			if (o.getValue() == value) {
				return o;
			}
		}
		return null;
	}
	
}
